package com.qfedu.zz.controller;

import com.qfedu.zz.common.vo.R;
import com.qfedu.zz.entity.Projectsrc;
import com.qfedu.zz.service.intf.ProjectsrcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName 项目名称项目的控制层的ProjectsrcController类
 * @Description 实现Projectsrc的对外的接口
 * @Author 邢帅哥
 * @Date 2021-11-10 00:10:19
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/projectsrc/")
public class ProjectsrcController {
    @Autowired
    private ProjectsrcService service;
    //新增
    @PostMapping("save")
    public R save(@RequestBody Projectsrc entity){
        return service.save(entity);
    }
    //查询详情
    @GetMapping("detail")
    public R queryDetail(int id){
        return service.queryById(id);
    }
    //查询详情
    @GetMapping("page")
    public R queryPage(int page,int size){
        return service.queryPage(page, size);
    }
}
